package ecommerce.rest;
import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import ecommerce.dao.UserTagDAO;
import ecommerce.dao.UserTagDAOImpl;
import ecommerce.model.*;

@Path("/tags/{username}/{password}")
public class UserTagServices {
	UserTagDAO tagDao = new UserTagDAOImpl();
	
	@GET
	@Produces(MediaType.TEXT_XML)
	public List<UserTag> getUserTag(@PathParam("username") String username,@PathParam("password") String password) {
		return (tagDao.getUserTagbyUserPassword(username,password));
	}
}
